package com.z.utils.weixin.sdk.cp.util;

import com.z.utils.weixin.entity.WxCpConfig;

public class WxCpConfigFactory {
	//	private static String cropId = "wx29730b0f0a6502e3";//正式环境
//	private static String cropSecret = "QIJGtmveUo0NJDP14uLGVRMz04olYT7gIA6T-_sxqIUtsAIZ1GhqejWWmWc86kH7";
	private static String cropId = "wx73d92d673dbbc07d";//测试环境
	private static String cropSecret = "snxbovz_ZLkmNESI6d3CLDNJI1-n6m2M_NAQiSDKDLy8CHv82lslq2pEBuPTYbwH";
//	public static String cropSecret1 = "RPvFyZpJQnQ9kLj6GNzJ57KH_1y11C73ngsPoTmy8CQ";//考勤管理秘钥
//	public static String cropSecret2 = "2b7Xl8_T1yKzD78Ovqb61j1Xt9cGlXkS65LxgXOaF7Y";//打卡应用秘钥
	private static WxCpConfig config;
	
	public static WxCpConfig getWxCpConfig() {
		if (config == null) {
			config = new WxCpConfig();
			config.setCorpId(cropId);
			config.setCorpSecret(cropSecret);
		}
		return config;
	}
	public static WxCpConfig getWxCpConfig1() {
		if (config == null) {
			config = new WxCpConfig();
			config.setCorpId(cropId);
			config.setCorpSecret(cropSecret);
		}
		return config;
	}
	public static String getWxCropId() {
		return cropId;
	}
}
